-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support azure assistant api #1616
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1616 +/- ##
===========================================
+ Coverage 39.44% 65.07% +25.62%
===========================================
Files 56 56
Lines 5985 5990 +5
Branches 1333 1451 +118
===========================================
+ Hits 2361 3898 +1537
+ Misses 3431 1742 -1689
- Partials 193 350 +157
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I'll see how to run the same test code twice using both OpenAI and Azure API separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some problem. When users provide the model in the llm_config
, it will be ignored.
Prior to this PR, when the model is provided in config_list
, it will be ignored. Neither is comprehensive.
We can fix this issue later.
Btw I did test it today. It worked with openai assistants, but I got stuck at trying to find an azure key that supported assistant API. The one I had access to did not :( I am working on getting it |
* support azure assistant api * try to add azure testing * improve testing * fix testing * fix code --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Why are these changes needed?
while using azure gpt assistant api,
model
inconfig_list
would cause error:NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
.Following the azure tutorial - https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/assistant#create-an-assistant, we should remove
model
fromconfig_list
Related issue number
Checks